feat(!): Major rework to blessed#143
Conversation
|
|
|
I'm not sure whether we should switch to blessed or not, but in my opinion, it's not good to add too many features in one PR. Maybe we can split the enhancement parts into other small PRs if possible. If they are coupled with blessed, we can add them later. I don't know if we can make the backend (curses or blessed) selectable, so the user can specify using curses for existing TUI apps. |
|
Just to chime in that blessed is fully interoperable with existing curses applications, that is part of the intended design, it produces no side effects -- except when using the context managers that describe their intended effects, saving terminal modes and restoring them for context managers that use it. Only I do agree that blessed can resolve all of the referenced issues. Hope you use it, please enjoy ! |
|
Closed by #157, Thank you for contributing anyway! |

Info
This would somewhat address and/or entirely close:
Changes
Option'senablevalue toFalse) visually distinct to show un-selectableTODO:
1. Increased flexibility for coloring options?Can specify a color to an
Option()now, as well as specifying the disabled color and pagination tip colors topick(); in addition, because not using curses, ansi codes can be used anywhere and interpreted appropriately.2. Ensure closer parity to existingpicklibrary currently* Biggest gap is the existing screen option; don't know that that would be even possible to do while leveraging blessed? It seems not likely, unless I'm missing something.* Notably: theexample/position.pyis the only example that is not working equivalentlyI'm convinced that switching to blessed entirely breaks interoperability with curses - this would need to be a discussion, I think? for this reason, I've set it to a major version upgrade - though I fear that this change will disrupt a good group of people who chose this package (bc they already had a curses app and wanted a nice pre-built menuing utility)? I am unsure what percentage of people that use this package absolutely require it to be interoperable with curses, but by going to blessed, I am of the opinion that it removes that option completely.
I would appreciate any further input/thoughts as well, thanks!